package org.lovo.controller;


import org.lovo.util.UploadFile;
import org.lovo.vo.FileVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenDong
 * @since 2021-09-29
 */
@RestController
public class SysUserController {

    @PostMapping("upload")
    public FileVo find(@RequestParam("file")MultipartFile file) throws IOException {
      return   UploadFile.upload(file,0);

    }
}
